const path = require("path");
// 遍历mode和server下的文件夹
function getFolders(name, fb) {
    var arr = [];
    const fs = require("fs");
    var filePath = path.join(__dirname, name);
    var files = fs.readdirSync(filePath);
    console.log(__dirname);
    files.map(function (it) {


        if (fb) {
            arr.push(it[0].toUpperCase() + it.substring(1));
        } else {
            arr.push(it);
        }

    })

    return arr;
}

var obj = {

    models: getFolders("../model", true),
}

module.exports = obj;